package com.ta.gulimall.coupon.dao;

import com.ta.gulimall.coupon.entity.SpuBoundsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.Map;

/**
 * 商品spu积分设置
 * 
 * @author tuao
 * @email tuaoo@gmail.com
 * @date 2022-12-04 16:25:02
 */
@Mapper
public interface SpuBoundsDao extends BaseMapper<SpuBoundsEntity> {

    @MapKey("spuId")
    Map<Long, SpuBoundsEntity> listSpuBoundBySkuIds(@Param("spuIds") Collection<Long> spuIds);
}
